
import request from '../utils/request';

export function getLogin(data: any) {
  return request({
    url: '/getLogin',
    method: 'POST',
    params: data
  });
}
export function getscblist(data: any) {
  return request({
    url: '/getscblist',
    method: 'POST',
    params: data
  });
}
export function getcollegelist(data: any) {
  return request({
    url: '/getcollegelist',
    method: 'POST',
    params: data
  });
}
export function addstudent(data: any) {
  return request({
    url: '/addstudent',
    method: 'POST',
    params: data
  });
}
export function getjwlist(data: any) {//教务数据
  return request({
    url: '/getjwlist',
    method: 'POST',
    params: data
  });
}
export function getkclist(data: any) {//教务数据
  return request({
    url: '/getkclist',
    method: 'POST',
    params: data
  });
}
export function setclass(data: any) {//教务数据
  return request({
    url: '/setclass',
    method: 'POST',
    params: data
  });
}

export function diststudent(data: any) {//删除数据
  return request({
    url: '/diststudent',
    method: 'POST',
    params: data
  });
}
export function amendstudent(data: any) {//修改数据
  return request({
    url: '/amendstudent',
    method: 'POST',
    params: data
  });
}

export function setisms(data: any) {//修改数据
  return request({
    url: '/setisms',
    method: 'POST',
    params: data
  });
}


//分片上传
export function upload(data:any){
    return request({
      url:'/upload',
      method:"POST",
      data
    })
  }
  
  //合并文件
  export function merge(data:any){
    return request({
      url:"/merge",
      method:"POST",
      data
    })
  }
  
  //获取版本信息
  export function getVersion(){
    return request({
      url:"/getVersion",
      method:"GET"
    })
  }
  
  //修改版本标题
  export function editVersionTitle(data){
    return request({
      url:'/editVersionTitle',
      method:"POST",
      data
    })
  }
  
  //修改登录账号
  export function editVersionLoginRoot(data){
    return request({
      url:"/editVersionLoginRoot",
      method:"POST",
      data
    })
  }
  
  //修改企业名称
  export function editVersionCompanyName(data){
    return request({
      url:'/editVersionCompanyName',
      method:"POST",
      data
    })
  }
  
  //修改教学周期时长
  export function editVersionDuration(data){
    return request({
      url:'/editVersionDuration',
      method:"POST",
      data
    })
  }
  
  //获取员工表
  export function getEmployeeList(){
    return request({
      url:'/getEmployeeList',
      method:"GET",
    })
  }
  
  //添加员工
  export function addEmployeeList(data){
    return request({
      url:'/addEmployeeList',
      method:'POST',
      data
    })
  }
  
  //导入员工数据
  export function importEmployeeDate(data){
    return request({
      url:'/importEmployeeDate',
      method:'POST',
      data
    })
  }
  
  //修改员工信息
  export function editEmployeeInfo(data){
    return request({
      url:'/editEmployeeInfo',
      method:'POST',
      data
    })
  }
  
  //删除员工信息
  export function DelEmployee(data){
    return request({
      url:'/DelEmployee',
      method:'POST',
      data
    })
  }
  
  
  //获取角色权限列表数据
  export function getRoleList(){
    return request({
      url:'/getRoleList',
      method:'get',
    })
  }
  //添加角色
  export function addRoleList(data){
    return request({
      url:'/addRoleList',
      method:'POST',
      data
    })
  }